package com.lvluo.jd.api.order;

import com.lvluo.jd.api.stock.Instrument;

/**
 * 股票交易工厂类
 * 
 * @author 永旺
 *
 */
public class TransactionFactory {

	/**
	 * 购买股票
	 * 
	 * @param idOrSymbol
	 * @return
	 */
	public IOrderQuantityPicker buy(String idOrSymbol) {
		return null;
	}

	/**
	 * 购买股票
	 * 
	 * @param instrument
	 * @return
	 */
	public IOrderQuantityPicker buy(Instrument instrument) {
		return null;
	}

	/**
	 * 卖出股票
	 * 
	 * @param idOrSymbol
	 * @return
	 */
	public IOrderQuantityPicker sell(String idOrSymbol) {
		return null;
	}

	/**
	 * 调整该股票的仓位到目前投资组合总资产的 targetPercent 百分比
	 * 
	 * @param idOrSymbol
	 * @param targetPercent
	 * @return
	 */
	public IOrderBuilderBase percentTarget(String idOrSymbol, double targetPercent) {
		return null;
	}

	/**
	 * 调整该股票的仓位到指定的价值
	 * 
	 * @param idOrSymbol
	 * @param targetValue
	 * @return
	 */
	public IOrderBuilderBase valueTarget(String idOrSymbol, double targetValue) {
		return null;
	}

}
